package ShenBlueInc.Sql;

public class User_inc {
	SqlConnect conn=new SqlConnect();
	/**
	 * 修改用户信息
	 * @param id
	 * @param name
	 * @param tel
	 * @param email
	 * @param fullname
	 * @return
	 */
	public int ModifyUser(String id,String name,String tel,String email,String fullname) {
		String sql="update `User` set User_name=?,User_telephone=?,User_email=?,User_fullname=? where User_id=?";
		return conn.DelUpInsert(sql, name,tel,email,fullname,id);
	}
	/**
	 * 修改密码
	 * @param id
	 * @param newPwd
	 * @return
	 */
	public int ModifyPassWord(String id,String newPwd) {
		String sql="update `User` set User_Password=? where User_id=?";
		return conn.DelUpInsert(sql,newPwd, id);
	}
}
